package com.huawei.appgallery.common.media.bean;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.huawei.appgallery.common.media.api.OriginalMediaBean;

public class SelectedMediaInfo implements Parcelable, Comparable<SelectedMediaInfo> {
    public static final Creator<SelectedMediaInfo> CREATOR = new Creator<SelectedMediaInfo>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return ˊ(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return ˊ(i);
        }

        public SelectedMediaInfo ˊ(Parcel parcel) {
            return new SelectedMediaInfo(parcel);
        }

        public SelectedMediaInfo[] ˊ(int i) {
            return new SelectedMediaInfo[i];
        }
    };
    public String ˊ = "image";
    public int ˏ = 1;
    public OriginalMediaBean ॱ;

    public /* synthetic */ int compareTo(Object obj) {
        return ॱ((SelectedMediaInfo) obj);
    }

    public SelectedMediaInfo(Parcel parcel) {
        this.ˏ = parcel.readInt();
        this.ˊ = parcel.readString();
        this.ॱ = (OriginalMediaBean) parcel.readSerializable();
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.ˏ);
        parcel.writeString(this.ˊ);
        parcel.writeSerializable(this.ॱ);
    }

    public int describeContents() {
        return 0;
    }

    public int ॱ(SelectedMediaInfo selectedMediaInfo) {
        return this.ˏ - selectedMediaInfo.ˏ;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof SelectedMediaInfo) {
            if (this.ˏ == ((SelectedMediaInfo) obj).ˏ) {
                return true;
            }
        }
        return false;
    }

    public int hashCode() {
        return this.ˏ;
    }
}
